<%-- 
    Document   : TCubeAccountActivation
    Created on : Sep 27, 2011, 10:32:02 PM
    Author     : Belinda
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList, BusinessLogic.Constants"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FoodSage -  Account Activation</title>
        <script language="javascript" type="text/javascript" src="../TransactWeb/js/jquery-1.6.4.min.js"></script>
        <script language="javascript" type="text/javascript" src="../TransactWeb/js/jquery.form.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/fieldsetCollapse.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/tcubmenu.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/accordion.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/scroller.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/Utilities.js"></script>

        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/gridsys.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/reset1.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/tcube.css" />
        <link href="../TransactWeb/css/gridsys.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/tcubaccd.css" />
        <script type="text/javascript">
            // Check Session to show relevant menus
            // Be sure to import Utilities.js in the script file	and declare partnerMenu as a servelet element
            window.onload = showPage('partnerMenu', 'leftnav');

            // If not logged in, use : 
            //window.onload = showPage('topMenu', 'topmenu');
            //IF logged in use : 
            window.onload = showPage('topMenulogout', 'topmenu');
          
            //welcome msg
            window.onload = showPage('welcomeMenutcube','welcome');
            
            //footer
            window.onload = showPage('partnerFooter','footer');
            
           
        </script>
    </head>
    <body>
        <div class="container_12">
            <!-- Header Nav -->   
            <div class="grid_3"><img src="../TransactWeb/img/reservation/foodsglogo.png" width="146" height="178" /></div>
            <div class="grid_9 nav">
                <div id="topmenu"></div>
            </div>
            <div class="grid_12">
                <hr size="3" color="#CC6600" />
            </div>
            <!-- Welcome Message -->
            <div class="grid_12 welcome">
                <div id="welcome"></div>
            </div>
            <!-- End Welcome Message-->

            <!-- End of Header Nav -->
            <!-- Menu / Planner -->
            <div class="grid_12 content">
                <!-- Content Header -->

                <%
                    ArrayList data = (ArrayList) request.getAttribute("data");
                    int result = ((Integer) data.get(0)).intValue();
                    if (result == Constants.STATUS_SUCCESSFUL) {
                %>
                <p>Your account was successfully activated.</p>
                <%        } else {
                %>
                <p>
                    You haven't registered for an account at TCube.<br/>
                    Please click <a href="./TCubeAccountRegistration">here</a> if you wish to register for an account.
                    Otherwise, if you're not redirected to Homepage in 6s, please click <a href="./TCubeHome">here</a>.
                </p>
                <%            }
                %>
                <!-- End Form -->
            </div>
            <!-- End Content -->
            <!-- Footer -->
            <div class="grid_12 footer">
                <div id="footer"></div>
            </div>
            <!-- End Footer-->
        </div>
    </body>
</html>
